package cronTrigger;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobKey;
import org.quartz.TriggerKey;

public class FirstJob implements Job{
	
	private String setter;
	
	public void setSetter(String setter) {
		this.setter = setter;
	}
	public void execute(JobExecutionContext context) throws JobExecutionException {
		
		Date date=new Date();
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH-mm-ss");
		System.out.println(sdf.format(date)+"当前。。。。。。。。");
		TriggerKey key = context.getTrigger().getKey();
//		System.out.println("start time:"+sdf.format(context.getTrigger().getStartTime()));
//		System.out.println("end time:"+sdf.format(context.getTrigger().getEndTime()));
	}

}
